package tr.richfacesext.components.scrollhere;

import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;

/**
 * 
 * @author mert
 *
 */
public class ScrollHere extends UIComponentBase{

	public static final String COMPONENT_TYPE = "tr.richfacesext.components.ScrollHere";
	public static final String COMPONENT_FAMILY = "tr.richfacesext.components";
	private static final String DEFAULT_RENDERER = "tr.richfacesext.components.scrollhere.ScrollHereRenderer";


	public ScrollHere() {
		setRendererType(DEFAULT_RENDERER);
	}

	public String getFamily() {
		return COMPONENT_FAMILY;
	}

	public Object saveState(FacesContext context) {
		Object values[] = new Object[1];
		values[0] = super.saveState(context);
		return ((Object) values);
	}
	public void restoreState(FacesContext context, Object state) {
		Object values[] = (Object[]) state;
		super.restoreState(context, values[0]);
	}
}